package com.dhcc.bpm.modules.gateway.service.impl;

import com.dhcc.bpm.modules.common.vo.SelectVo;
import com.dhcc.bpm.modules.gateway.entity.Authcenter;
import com.dhcc.bpm.modules.gateway.vo.AuthcenterVO;
import com.dhcc.bpm.modules.gateway.mapper.AuthcenterMapper;
import com.dhcc.bpm.modules.gateway.service.IAuthcenterService;
import org.springblade.core.mp.base.BaseServiceImpl;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.core.metadata.IPage;

import java.util.List;

/**
 * @ClassName AuthcenterServiceImpl
 * @Description 授权中心表 服务实现类
 * @Author YaoZC
 * @Date 2020/01/19 15:32
 * @Version 1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Service("opc_authcenter")
public class AuthcenterServiceImpl extends BaseServiceImpl<AuthcenterMapper, Authcenter> implements IAuthcenterService {

	/**
	 * @Description 自定义分页
	 * @Date 2020/01/19 15:32
	 * @param page
	 * @param authcenter
	 * @return java.util.List<com.dhcc.bpm.modules.gateway.vo.AuthcenterVO>
	 **/
	@Override
	public IPage<AuthcenterVO> selectAuthcenterPage(IPage<AuthcenterVO> page, AuthcenterVO authcenter) {
		return page.setRecords(baseMapper.selectAuthcenterPage(page, authcenter));
	}

	/**
	 * @Description 系统服务名关联查询
	 * @Date 2020/01/19 15:32
	 * @param
	 * @return java.util.List<com.dhcc.bpm.modules.common.vo.SelectVo>
	 **/
	@Override
	public List<SelectVo> selectAuthCenterName() {
		return baseMapper.selectAuthCenterName();
	}

	@Override
	public List<String> findAllIds(Long id) {
		return baseMapper.findAllIds(id);
	}

	@Override
	public int updateAuthCenter() {
		return baseMapper.updateAuthCenter();
	}

}
